<?php

namespace Part06_DecorationMode\Code4;

/**
 * @desc: Decorate的身份
 */
class Finery extends Person
{
    protected $componentObj;

    public function decorator($componentObj)
    {
        $this->componentObj = $componentObj;
    }

    public function show()
    {
        if ($this->componentObj != null) {
            $this->componentObj->show();
        }
    }
}